class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      ## Account basics
      t.string 	:username
      t.string	:password_hash
      t.string	:password_salt
      t.string	:email
      t.datetime	:created_at
      ## Profile basics
      t.string	:nickname
      t.string	:first_name
      t.string	:last_name
      t.string	:gender
      t.date	:birthday
      t.datetime	 :update_at
      ## Residence
      t.integer	:address
      t.string	:street
      t.string	:unit
      t.string	:city
      t.string	:region
      t.string	:country
      t.integer	:postal_code
      t.string	:residence_type
      ## Profile
      t.text	:about
      t.text	:interests
      t.text	:music
      t.text	:books
      t.text	:movies
      t.text	:tv
      t.text	:relationship_status
    end
  end

  def self.down
    drop_table :users
  end
end
